
import { axiosGet, axiosPost, axiosPut, axiosDelete } from '/@/api/RequestBase';
import { SqlSugarPagedList, BaseKeywordPageInput } from '/@/api/BaseDto';

import { BasYueXueYuJingInput } from './dto/BasYueXueYuJingInput';
import { BasYueXueYuJingOutput } from './dto/BasYueXueYuJingOutput';

export type { BasYueXueYuJingInput, BasYueXueYuJingOutput, };

const service = 'BasYueXueYuJing/'; // 要写后面的斜杠, 不要写前面的斜杠

export const BasYueXueYuJingApi = {
	page: (data: BaseKeywordPageInput) => {
		return axiosPost<SqlSugarPagedList<BasYueXueYuJingOutput>>(service + 'page', data);
	},
	get: (id: number) => {
		return axiosGet<BasYueXueYuJingOutput>(service + `get/${id}`);
	},
	add: (data: BasYueXueYuJingInput) => {
		return axiosPost<number>(service + 'add', data);
	},
	update: (data: BasYueXueYuJingInput) => {
		return axiosPut<boolean>(service + 'update', data);
	},
}
